package com.rockcent.service;

import com.rockcent.mall.lib.domain.MerchantRechargePayment;

import java.math.BigDecimal;

/**
 * Created by hone on 17-3-29.
 */
public interface WechatRechargeService {

    /**
     * 生成充值流水
     * @param rechargeAmount
     * @param mallId
     * @param merchantId
     * @param operatorId
     * @return
     */
    MerchantRechargePayment create(BigDecimal rechargeAmount, Long mallId, Long merchantId, Long operatorId);

    /**
     * 生成成功支付流水
     * @param payId
     * @param payNo
     * @param transactionId
     * @param rechargeAmount
     * @param timeEnd
     */
    void createMerchantRechargeFlow(Long payId, String payNo, String transactionId, BigDecimal rechargeAmount, String timeEnd);

    /**
     * 查询充值流水
     * @param payNo
     * @return
     */
    MerchantRechargePayment findByNum(String payNo);
}
